<?php
/**
 * 
 * PDO-Documentation: http://php.net/manual/en/book.pdo.php
 *
 * @author Kai R.
 * @version 1.01
 */
class CSql extends PDO
{
	function __construct(array $connect) 
	{
		// Check arguments
		if(count($connect) < 3) throw new Exception("Class needs at least 3 arguments.");
		
		// Add an optional foruth argument for parent-constructor
		if(!$connect[3]) $connect[3] = array();
		
		// Connect
		parent::__construct($connect[0], $connect[1], $connect[2], $connect[3]);
	}
}
?>